package com.cmd.user;


import com.alibaba.fastjson.JSONObject;
import com.player.User;
import com.qy.mgr.CheckStationMgr;
import com.qy.mgr.VoucherMgr;
import com.qy.util.StaticData;
import com.util.AbstractCommand;
import com.util.PBMessage;

/**
 * 获取系统相关的信息
 * @author 34225_000
 *
 */
public class SystemParamGetCMD  extends AbstractCommand{

	@Override
	public void execute(User user, PBMessage packet) throws Exception {
		/*
		 * 获取系统商店表的信息
		 */
		JSONObject reJs = new JSONObject();
		reJs.put("storeList", VoucherMgr.getStoreInfo());
		
		reJs.put("checkStationList", CheckStationMgr.getCheckStationList());
		
		reJs.put(StaticData.reKey.code.getKey(), StaticData.codeType.ok.getType());
		reJs.put(StaticData.reKey.cmd.getKey(),packet.getCode());
		user.sendPacket(reJs);
		return;
	}

}
